# coding=utf-8

import math


class MyMatch:
    def add(self, a, b):
        # 加法
        return a + b

    def sub(self, a, b):
        # 减法
        return a - b

    def multiplication(self, a, b):
        # 乘法
        return a * b

    def division(self, a, b):
        # 除法
        return a // b

    def power(self, a, b):
        return a ** b

    def extract(self, a):
        return math.sqrt(a)


match = MyMatch()
print(match.add(5, 6))  # 11
print(match.sub(10, 1))  # 9
print(match.multiplication(5, 6))  # 30
print(match.division(4, 2))  # 2
print(match.power(2, 4))  # 16
print(match.extract(4))  # 2.0


class Car:
    def brand(self, brand):
        return f'{brand}牌汽车'

    def color(self, color):
        return f'{color}颜色的汽车'


brand_car = Car().brand('奥迪')
print(brand_car)  # 奥迪牌汽车

color_car = Car().color('七彩')
print(color_car)  # 七彩颜色的汽车
